import { Exclude, Expose } from 'class-transformer';
import {
  Column,
  CreateDateColumn,
  Entity,
  PrimaryGeneratedColumn,
  UpdateDateColumn,
} from 'typeorm';

@Entity('good_category')
export class GoodCategoryEntity {
  @Expose()
  @PrimaryGeneratedColumn()
  id: string;

  @Column({
    comment: '分类名称',
  })
  name: string;

  @Exclude()
  @CreateDateColumn({
    comment: '创建时间',
  })
  createdAt: Date;

  @Exclude()
  @UpdateDateColumn({
    comment: '更新时间',
  })
  updatedAt: Date;
}
